determining the conditional probability from a contingency table